package com.aries.ui.widget.demo;

import com.aries.ui.helper.status.StatusViewHelper;
import com.aries.ui.util.PixelUtil;
import com.aries.ui.widget.demo.util.SizeUtil;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.AbilityLifecycleCallbacks;
import ohos.aafwk.ability.AbilityPackage;
import ohos.app.Context;
import ohos.app.ElementsCallback;
import ohos.global.configuration.Configuration;
import ohos.utils.PacMap;
import org.greenrobot.eventbus.EventBus;

public class MyApplication extends AbilityPackage {

    @Override
    public void onInitialize() {
        super.onInitialize();
        SizeUtil.getDisplayMetrics(getContext());
        PixelUtil.initContext(getContext());
        EventBus.initThreadForHos(getUITaskDispatcher());

        StatusViewHelper.setAbilityPackage(this);
    }


}
